#!/bin/sh
# $1 has the path to the source package
# $2 has the path to the target folder
# $3 has the path to the target volume
# $USER has the name of the user who launched the installer

if [ -f "$1/Contents/Resources/KeyboardChooser.app/Contents/MacOS/KeyboardChooser" ]; then
	sudo -u $USER "$1/Contents/Resources/KeyboardChooser.app/Contents/MacOS/KeyboardChooser"
fi

if [ -e "$1/Contents/Resources/LCC Uninstaller Tool" ] ; then
	"$1/Contents/Resources/LCC Uninstaller Tool" --preinstall
fi

exit 0
